/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-09-09 10:23:33
 * @LastEditors: lyy 2684842688@qq.com
 * @LastEditTime: 2022-09-23 16:52:14
 * @FilePath: \project\pyy\src\http\modules\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '@/utils/axios.js'
import {
    TEL,
    CODE
}
from '../apiUrl'
export default {
    // 手机号绑定
    telephone(data) {
        console.log(data);
        return axios({
            url: TEL + '/' + data.openid + '/' + data.phone,
            method: 'post',
            data
        })
    },
    // code验证
    getUserIdentify(params) {
        return axios({
            url: CODE + '/' + params.code,
            method: 'get',
        })
    }
}